﻿using System;
using System.Data;
using System.Text;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using AnyOffice.Components;
using AnyOffice.DAL;
namespace AnyOffice.general.attend.manage
{
    public partial class delete_leave : ModulePage
    {

 
        protected void Page_Load(object sender, EventArgs e)
        {
            int leaveId = (Request.QueryString["leave_id"] != null) ? int.Parse(Request.QueryString["leave_id"].ToString()) : 0;
            new AttendLeaveDao().Delete(base.Conn, leaveId, base.User.Identity.Name, true);
            base.CloseConn();
            Response.Redirect("query.aspx");
        }
 

    }
}
